Force a Member to Become Primary in mongodb
The reason nms02 becomes Primary when it joins the replicaset is due to having the higher priority setting.
According to the documentation:

Specify higher values to make a member more eligible to become primary, and lower values to make the member less eligible.
snip
A priority of 0 makes it impossible for a member to become primary.