lockfile bug fix