fixed weird dir struct issue