fix signature validation