fixed caching of attrs