Fixed a crash on 10.8