Fixed app cache bug