fixed bug at line 732 (planet.cs)