fixing collisions with animations