Fix bug in cluster init