Nand with cache.img
fix loop