Fixed a bug on Mac OS #7

Thank you OMerry for your report !