fix canvas text for different brower implementations