Fix bug in grid tile method.