fixed refreshOnResize = false