fixed time flickering in timer