Fix create survey functionality