fixed browser compatibility issues