fix the contact problem