Fix for MacOS.