fix error dispatch event with count 1