Fix for config file error detection