Fix deletecommand