small fixes on vector and stdout stream