Fixed teacher update bug