Fix warnings on config check