Fix problem by the inconsistency of table and relation