Solved by MariosOreo in post #4 
              
              
                Oh, it seems the snippet is in a wrong order. You can change the train phase  before modification or omit the train phase.