fix json response for session