Fix crash in ICS and below