Fixed a potential bug when using generic attributes added "by name"

A very small bugfix; does not break compatibility and improves the user control over the library by a tiny bit.