Fixed compatibility with API 8 (Gingerbread).