Corrected bug in etract_all util