Fix refresh interval, handle empty json from server correctly