lock files cleanup fix