fixed waltz script panic when no init param provided