Segfault when including survey data in plan