fixed another bug in private key file use