fixed bugs in planets example