Fix problem with MACOS