fixing memory leak in one time timer