Fixed config checking error