export_responses_by_token function fix