fixing pathname