fix mysql replay problems