fixed a bug when parsing SERVICE_URL