getIdArray crash fix