Fix bug to skip tiles with negative indexes.