fixed bug in courses search
updated version