fixed collision detector clean up bug