fixed output path resolution error