diff --git a/templates/import_campus.html b/templates/import_campus.html
index ecda839cd530a169e66c73813d921ddc49d8261b..11e0e87e5ede2c3211c7b084b1baf45121ff4e25 100644
--- a/templates/import_campus.html
+++ b/templates/import_campus.html
@@ -18,7 +18,7 @@
 								<input class="form-control" type="text" name="campus.{{i.id}}.url" value="{{i.url}}" id="campus-{{i.id}}-url" placeholder="url">
 							</span>
 							<span class="input-group col-xs-2">
-								<input class="form-control" type="test" name="campus.{{i.id}}.type" value="{{i.type}}" id="campus-{{i.id}}-type" placeholder="type">
+								<input class="form-control" type="text" name="campus.{{i.id}}.type" value="{{i.type}}" id="campus-{{i.id}}-type" placeholder="type">
 							</span>
 							<span class="input-group col-xs-1 pull-right">
 								<button class="btn btn-default pull-right" onclick="$('#campus-{{i.id}}-url').val('')">
@@ -32,7 +32,7 @@
 								<input class="form-control" type="text" name="campus.new.url" placeholder="url">
 							</span>
 							<span class="input-group col-xs-2">
-								<input class="form-control" type="test" name="campus.new.type" placeholder="type">
+								<input class="form-control" type="text" name="campus.new.type" placeholder="type">
 							</span>
 							<span class="input-group col-xs-1 pull-right">
 								<button class="btn btn-default pull-right">
diff --git a/templates/timetable.html b/templates/timetable.html
index f00f55ff136da1a48f8a1538dc1591ecd471fe18..fe6ab377147a42aaabc25de442e526f5b17715c0 100644
--- a/templates/timetable.html
+++ b/templates/timetable.html
@@ -46,7 +46,7 @@
 					{% set time_index = loop.index %}
 					<tr{% if t.strftime("%M") == "00" %} class="hourlytime"{% endif %}>
 						{# display time in first row if its a full hour #}
-						{% if ((time_index - 1) is divisibleby 4) %} <td rowspan="4" style="vertical-align: top;">{{ t.strftime("%H:%M") }}</td> {% endif %}
+						{% if ((time_index - 1) is divisibleby 4) %} <td{% if not loop.last %} rowspan="4"{% endif %} style="vertical-align: top;">{{ t.strftime("%H:%M") }}</td>{% endif %}
 						{# iterate over days if if it is a working day or we have lectures on that day (optionaly skip weekends) #}
 						{% for d in days if (d.index < 5) or (d.lectures|length) > 0 %}
 							{% for col in range(1,d.maxcol+1) %}
diff --git a/timetable.py b/timetable.py
index 73d94bcf435215afb7104125ee6810874c8efeb9..00f1a89dbacf86c73f938491a069e9070d34ac90 100644
--- a/timetable.py
+++ b/timetable.py
@@ -24,7 +24,6 @@ def timetable(user=None):
 
 			if not datesweekmonday:
 				kw = 0
-				weekofyear = str(datetime.today().year) + "-W" + str(datetime.today().isocalendar()[1])
 			else:
 				datesweekmonday -= timedelta(days=datesweekmonday.weekday())
 				kw = int((datesweekmonday.date() - thisweekmonday.date()).days/7)
@@ -36,7 +35,7 @@ def timetable(user=None):
 		start = date.today() - timedelta(days=date.today().weekday() -7*kw)
 	except:
 		start = date.today() - timedelta(days=date.today().weekday())
-	weekofyear = str(start.year) + "-W" + str(start.isocalendar()[1])
+	weekofyear = '{}-W{:02d}'.format(datetime.today().year, datetime.today().isocalendar()[1])
 	days = [{'date': start, 'lectures': [], 'atonce':0, 'index': 0 }]
 	earlieststart=time(23,59)
 	latestend=time(0,0)