scale back aggressiveeness of RES element protection

also a random var was missing