Fixing bug in SignatureGenerator: wrong signature duration calculation because of...