fixed json parser problem