bug fix for empty value