Fix the bug that major could not be converted to json object