BEAST bug fix