Fixed bug in tile offset while rendering