fixed crash on Lion