fix bug for empty value