Yea just change unset %brgb.* to var %brgb.r,%brgb.g,%brgb.g
Or you could put the unset at the bottom instead.