Fix NewProjectWithUrl which assume the wrong number of path segments