Fixed cross browser compatibility