fix empty value bug for multiple input