Fix get identifier when save the entity