fix linux select event bug