fix displaying only matching courses

copy-pasta fastfood