When a ship is docked to a planet and exiting the ship core, logging back in, or even after activating the gravity module on a ship and walking around inside of the ship for a bit, the astronaut will loose the effect of gravity, and align 90 degrees . Hitting spacebar will align the player not again to this odd orientation that has no relation to the planet's plate gravity, or the actual constructed alignment of the ship/ship core. This happens on both small and larger ships.
This is quite annoying for some of us crazy people that like challenge of building planetary bases and ships that must dock and take off from planets.