fixed confusion between answer index and question index