Fixed issue: Dataset after query was still open creating problems on previewing a survey