Fix directory not being listed properly.