Debugging the user_complete_history.csv download