fixed mac bug
mac support