fix lockfile bug