fixed a bug with url