fixing autoping timer logic