correction & improvement

- correction of "Creating default object from empty value"
- mkdir() cache folder if not exists