Fix bug that output unnecessary </option> tag