model/bug: attribute should be given the model's key.