fix bug in MacOS
fix bug in MacOS