Only course update and add course doesn't work properly