fix repeat event on linux