Planets get skipped in overbuilding bug

I think I've found the problem.

P.S. my in-game name is Melchior