Fixed the good_tile_shape bug.
Fixed bugs related to the good_tile_shape bug.
Merge pull request #88 from fegin/bugfixed

Fixed the good_tile_shape bug.