Fixed issue of courses

(only for logged in users logged out still broken)