Fix DeleteCommand Bug