bug fixed in timer