to make capturebuffer test ok