fixed crash on some devices