Fixed cross-browser issue