Fixed initialization in Timer class