Elasticsearch Master Election

I have 2 nodes 1 master & other is data node in my Es 1.7.1.
It is electing both as master. i have already set in my master yml that node.master:true & node.data:false whereas in my data node node.master:false and node.data:true.
please help me out guyzz.

What makes you draw the conclusion that both are masters?