fixed crash on older api