fixed a bug with checking if a cluster already exists