yet another json bug fix