Max memory fix (fixes windows crash when playin memory exeeds +/- 260mb)