Fix minor logic error with piloting