add workaround for input cross thread.