fixing json problem