Fixed issue when listing the contacts of an entity