fixing contact nodes