Fix Resharper errors.