remove the bad versions found in the version map