solving the display problem appearing after cutting