fixed contact controller bug