#447 fixes in course contests logic