Enum bug in models