bugfix for planet count not going to zero