fix mismatched attribute references