Removed bug on macosx