Fix bug when questions is nil

Fix bug when questions is nil