fixed Mac build