fix error in entry type judgment