fix contact crash