Fix input element for browser compatibility