Fix exception when opening new file and redrawing at same time
Add Mac specific class