timer optimization fix