That's normal behavior. When you approach a planet a rare random event happens to decide if the planet has an anomaly. If you leave the planet and go too far away it will re-randomize when you approach the planet again so it is likely the 2nd random event will change the outcome.