fixed wrong use of length filter in motif snippet. fixed conditions table in legacy view