Fix old browser compatibility issues