Tweak to work on mac os