Fix styles on OSX (issue 7004)