Bugfixes to resting contact method