fix cut with empty selection