Fixed bug for resting contact