Fixed a locking issue