fixed resize by limiting it