FlushInput BugFix (i forgot the global var)