fix error in mac