Fixes wrong access to static attribute cache