Fix to support input element which has no values