fix index.html can't load resource error bugs