Fix crashes on CM11. Might apply to some other roms, too.