fix issue when user without teacher