Fix crash issue at API level7