bug fix lockfile