Why is my Web GUI server connecting to backup Object server but not to the primary one?

A Web GUI server is configured to connect to a primary and backup object servers pair which are setup for automated failover and failback for high availability. The ncwDataSourceDefinitions.xml file in Web GUI server is configured correctly, defining that which object server is primary and which one is backup. But Web GUI give preference to backup Object server and connects to it ignoring primary server.