fixed mac bug