Fixed possible bug in X14 signing process