a bug in BaseModel