fixed encoded url bug