fix thinko in dir(), bug found by dagurval++