Fixed issue where a master node could not be found