Fixed problems with signature creation.