Instead of doing B.updateMatrixWorld();, try it with B.updateWorldMatrix( true, false );. Notice the different method name.
Instead of doing B.updateMatrixWorld();, try it with B.updateWorldMatrix( true, false );. Notice the different method name.