fix mysql issue