fix html generator race and 404 hash