fixes error when inserting survey results into hash