fix with indices of tiles