fix old enum syntax