Fixed crash on some devices