fix bug with multiple tilesets