fix separation bug