fixing runaway polling timer