fixing timer issue