teachers controller fix