fix incorrect memory settings