Fix copy-paste bug introduced in de42fd35476edbff7af7acdcfb2de254129443d2 whereby
saved effects would be erased. Closes ticket:4099. Closes ticket:4103.