Working on logic with Course beforeUpdate. Do not use this commit until fixed