fixed the external flash issdue