Fixed bug in yaffs2 cleanup