fixed resize issue