Fixed error occurring when no data folder present