fix effect bug