Fixing attribute overriding