fixed mac compat bug -BMO