[packages] Fix mtd bug.