Button to navigate through dirs

I´d expect this simple code to work. It´s supposed to abbreviate the action of looking through various subsequent folders.
It shortly jumps to the next folder (so "Go Up" / "Select Next" works), but then immediately falls back to the starting folder.
What is wrong with that code? :confused:

Go UP
Select Next
Go {f}