Additional fix to resetRobotCode issue