Fix profile and map hook.