Fixed ResizeListener implementation