fix NPEs in sign updating