fixed bug when query string in course change