Logging into a survival world spawns me in the sky
While in a cave in my singleplayer world I had to save and quit the game. Later I logged back into the world and found that I had somehow spawned very high in the sky and fell to my death and lost all of my stuff. I don't want this happening again so please fix.