fix contact bug