Fix html reload bug