fixed check for robot bugs