Fix issue #7 related to crash on Mac OSX.