fix last of path problems