fix error on mac