apply course bugfix