Fixes bug causing planet name not to generate.

Also other things.