fixed nullprt of timer