fixed error in cryptostore