Fixed enum reference in Task model