fix signature check patch