fix effect bug and collision detection bug