Fixed a bug when translating html in 'online' mode