Fix recentering bug