fix locking issues