fixing error on mac