fixed read-json bug