Fix invalid configuration
Run checks in the earliest possible phase