Fixed function of path fix