fix small bug on register_uninstall_hook call