Fix data parsing, create folder if necessary