fix `toJSON` in base model