timer bugfix