fix some bugs of libo