Fix traverse conditional