BeamLaser: fix SIGFPE