Bug Fix to robot detection