fixed bugs for setEffect of terminator loss/gain