fix Effect js error