fix creating uiinfo with wrong type of entity