fix appcache stuffs