Fixed crash on 10.7.