Fix return so that output doesn't double.