fixed bug in polling