Issues/6 enum and type violate on nil