fix warning, update lists:foreach({erlang,cancel_timer},..)