fixed bug with appcache