fix bug on recursive creating directories