Fixes an exception when right clicking on "ENTITY' in the entity table.