fix polling.
Merge pull request #29 from padule/fix/polling

Fixed polling.