fix possible crash on some phones