Fix memory settings