Fixed mistakes on mac