fixed incorrect enum type assignment