Fix on runCommand method