dir struct fix