fix beamtrap