Fix bug when saving root menu on MySQL.