Attempt at making the JSON server more stable