fixed bug with untrain (cast taught # to number from string