fix checking configuation file