Fixed a bug: Use the correct lock slot.