Fix lock revision problem