url logic error fix