fix for ResValue cast to ResAttr exception (not really, just bypass)