typo with eventResize and revertFunc