fixed url flush bug