fixed error in cryptMessage