Harleys are famous for that if you fill the tank to the brim. Next time you gas up just leave about 1/2" of air space. In the old gravity/fuel petcock days this was not an issue. But with EFI it is. One thing to try if you have that happen again is to cycle the fuel pump twice with the stop run switch before you hit the starter.