fix edit course application bugs