Fixed bug where url != path.