Fixed behavior of complementation for command