Solve autotile bug.