Fixed bug in nix-vector and naming for output files.