fix xray line selection so that energy_for_zoom is properly set