Fix an issue with getting teachers