fixed contact bug