fix beam gradient