moved call to locking operation
Merge remote-tracking branch 'origin/master'