fix all_pattern_entity_list redirect loop