Fix enum warning