fixed locking [ci skip]