Fixing redeemScript