fix mysql error
warning cleanup