Signing transactions with un/compressed key
compressed pubkey and uncompressed one have different hashes. so, your code should be something like:

scriptSig1 = "76a914" + hashedPubKey_1 + "88ac"; 
scriptSig2 = "76a914" + hashedPubKey_2 + "88ac";