fixed bug in ab