Fixed capture output bug