Fix some bugs of BWGameObject.