entity: fixed save() method