fix the bug on the contact controller