Fixed undefined variable out_nb.