Fix directory intialization