Fix issue with smartcase option.