Fix signature  problem

Changed fetching strategy and application of signature decryption