bugfix: lock