Hook timer callback fix