fixed detection of cluster nodes

Change-Id: Id15ff5d120713b63f1831fc58dc1c1593c17b026