diff --git a/lam/lib/html.inc b/lam/lib/html.inc
index 3b6b7254..5b447af8 100644
--- a/lam/lib/html.inc
+++ b/lam/lib/html.inc
@@ -728,7 +728,7 @@ class htmlButton extends htmlElement {
 		$name = ' name="' . $this->name . '"';
 		// image button
 		if ($this->isImageButton) {
-			$class = ' class="smallImageButton"';
+			$class = ' class="smallImageButton align-middle"';
 			$style = ' style="background-image: url(../../graphics/' . $this->value . '); background-color: transparent;"';
 		}
 		// text button
@@ -2308,7 +2308,7 @@ class htmlLink extends htmlElement {
 	function generateHTML($module, $input, $values, $restricted, &$tabindex, $scope) {
 		$image = '';
 		if ($this->image != null) {
-			$image = ' ';
+			$image = '
 ';
 		}
 		$title = '';
 		if ($this->title != null) {
diff --git a/lam/templates/main_header.php b/lam/templates/main_header.php
index 4a084857..87be2d0c 100644
--- a/lam/templates/main_header.php
+++ b/lam/templates/main_header.php
@@ -122,19 +122,19 @@ foreach ($toSort as $key => $value) {