fixed json response issue