Fixed a but when the console execute /spec on or /spec off (ClassCastException)