Fixed runCommand