Fix incorrect enum type