Fixed a bug with the command running