fix bug with teachers api response