Fix attr in model. Close #23