Adjust wrap formula to prevent ghost asteroids