fixed crash when there are no surveys