Fixed compilation issue with enums