This seems to happen a lot to me since I usually tap the spacebar when I jump and I don't hold it down. Maybe fly could be on by default, and /fly to toggle off, then /fly to toggle on again? Sort of like how fly works in survival or Skyblock.