timer tick fix