fixed mac build issue