fix for doing downcase on nil