Fixed error refereing to ent from tr