fixed a few bugs after running tests on the robot