Fixed course toggle bug