fix bug that prevented first poll from working