Fixed bug in implicit command logic