Fixed crash on some Android devices.