bug fix on teaching