Bug fix on output file path.