Fixed bugs in timer