fixed issue with the max log limit