Fixed beamScan program after dry run