repair problem that unable to removeEventListener the resize event