tried to fix mysql crashing problem