Fixed bug while adding techers to a program.