Fix wrong change on AttributeKey (version 4.0 vs 4.1)