fixed json builder bug