fixed max log size problem