fixed create directories