Fix close mac