fixed crash on 10.7 targets