fix a bug of referUrl