Fixed cross-browser issue with curve labeling.