fixed configuration file handling error