TR: fix for ENDOFSHIFT
fix for filtering training mode