fix for commit 67ba68627f93e2437bcc165b11c7034b70476e44: support surveys with more than one page