Fixed last event being fired too many times.