fix dispatch event