Fixes crash on 2.3 devices.