fixed some json problems