init directory fix