fixed a bug of selected bone is not refreshed and undo/redo sync issue