fixing robot bug