Fixes in the robot main class