Fixed minor bug with output name.