! UPDATE: deal with the input for MacOSX platform.