fixed some arb bugs