Fix enum replacing