fixed issue on mac