Bug with lockfile