fix eventResize and eventDrop