Fix url rewrite missing bug