Lifted bug in memory effect and switch "memoryoff"