- fix bug about pass (when we do a pass, we could do a pass without direction)

Signed-off-by: Florian <Florian.guilleminot@gmail.com>