diff --git a/registration-system/view/captcha.php b/registration-system/view/captcha.php
index b29c598e01beae620e1fb848aa739c7a6a01883c..4c9ac1b40b0ef7bdeaac3f58abcdb8fd5f3a65c4 100644
--- a/registration-system/view/captcha.php
+++ b/registration-system/view/captcha.php
@@ -25,7 +25,7 @@ function captchaForCode($code)
 	imagefill($img, 0, 0, $bgcol);
 	for($x = 0; $x < $code_len; $x++){
 			$col = imagecolorallocate($img, rand(80, 255), rand(80, 255), rand(80, 255));
-			imagettftext($img, 40, 0, 20 + (45 * $x), 64, $col, "km.ttf", substr($code, $x, 1));
+			imagettftext($img, 40, 0, 20 + (45 * $x), 64, $col, __DIR__."/km.ttf", substr($code, $x, 1));
 	}
 
 	header('Content-Type: image/png');