tried to fix some robotdetection bugs