entity: fixed save()