fix for null id of survey