prevent error on non-anchor hash url