Fix buffering output