Fix the tick handler registration