Like Frodo said, shut down you computer and reload minecraft. I get this glitch to, in 1.8 and most other version, water is very complicated and causes glitches. This combining with you teleporting through the water stargates is a common glitch. Just wait for a while and it will end.