fix problem when first time use.

missing config, and wrong None type