repair error in acq loop delay function