bug fix to set strings for dict keys