#5 bug fix: handling string key problem