small fix to timer