Remove current relationships if they exist
Fix a bug that prevent functions_to_hooks from working