fix contact check