fixed bug to create data folder