Fixed bug with listener / resizing