fix issue in mac