Fixed large text file size memory error bug