fixed json initialization