fix course model and template