fixed some small IB bugs