fix cut bug