fix course tooltip show condition