fixed mac issue