Several fixes on realtime ecc capture