fixed error in hash access