fixed broken if statement on course/show page