fixed a bug

This just fixes a bug with the planet system that I had noticed while looking through the code.