Fixes tileset base calculation