Fixed browser compatibility issues