fixes bug with clusters