Fixed a bug that sometimes accidentally used poll interval as poll delay