fixed bug: crash without config file