fixed some bugs of locking chains