fix beam regression