Fixes redraw on resize function passing event instead of data