fix difference mac and linux