fixed a slight problem with json response