Fixed problem with unrecognizable secret key.