fixed render to json