Fix gui on mac