fixed last position duplicate events bug