fix signature creation