fix low memory problem on Mac OS X 64-bit