fixed the bugs of empty programs for teacher logins
fixed bugs of empty programs for teacher logins