Fix wrong entity def.