fixing check for cluster config