fix bug to test polling