Now we use teacher id not teacher code at line 156. bug fixed