Fixed bug in config file handling