Fixed poll write bug