Class cast exception in settings & logging level in inspection fix