Fix cut-and-paste