fix path resolution.