Fixes survey creation: 'type' was always 0.