fixes bug with reverse url lookup