fix coding error in MacOS