Fixed the query button to use an appropriate constructor for course