fix dir problem of tmpjson