fixed separation bug