solve exception for save to mysql