fix bug in effect