Fixed bug with some constraints returning section instead of a course object