fix crash when configuration file is invalid