Fix some bugs of IB