fix unknown var direction