Fixes error in robot.cpp