fixed bug preventing enums from loading from json