lock constraint now works properly