Fixed an error where an non-existant enum was referred to!