Handle effect changes correctly.