Fix broken tilemaps in Safari.