stn_meta_to_json bug fix