Fixed locking error.
Merge branch 'test' into dev