patch lockfile bug