fix not save predefined entity and relation