Fix warning on Mac OS