fixed bug that the from json created enum values were ignored