fixing error for teacher when they have no entry