A temporary fix to the moving rect when collisions