quick and dirty fix for https://github.com/jdereg/json-io/issues/25

Maybe a naive attempt to fix this problem: https://github.com/jdereg/json-io/issues/25

Let me know, please