Fixed a bug where command error messages were not displaying correctly