fix incorrect enum usage