Fix bug in unhook_import.