Just a simple patch about tile index caculation