Fix a bug related to directly fail. Auto set duplicated tile elimination.