Fixes crash for iPhoto and Aperture