Fix bug - depress errors in Mac platform.