Fixed execution of demo1b on Mac