Fix crippling bug in url hook.