fix issue with MacOSX: bug #9772