fixed mac related error