fixed url being overwritten