fix timer ontick constructor call