bugfix in timer