Fix #659 - segfault problem with zignature
ReFix for #585 issue