Fixed bug in BaseModel not clearing changes