fixed page refresh from url bug