fix bug json return type for updateState