Fix memory setting