Fix lock reference