Change  type to min an max quota in courses