fix bug in saving survey / publish survey