Lifted bug in memory effect and "memoryoff" switch