teacher update bug fixed