fixes create survey algorithm & bug with d3 in multiple-question surveys