fix params for tableForJson