fixed url logic