added a fix to the memory if the machine is windows