bugfix: s/lock/unlock/