Fix error in mac