fixed resize event issue