Fixed crash when API<10