fix bug in BA. #2