Fix error with direction "down,up"
Add test