Fix hooking location client