Prevent event overlapping.