Fixed curRobot bug pointed out by Daniel