fixed bug with the existing cluster detection