NAND flash inf. loop fix