Fixed the teacher code not being pulled correctly in some cases