diff --git a/src/messenger/webim/libs/chat.php b/src/messenger/webim/libs/chat.php
index d1eaeea5..fb45b49a 100644
--- a/src/messenger/webim/libs/chat.php
+++ b/src/messenger/webim/libs/chat.php
@@ -163,7 +163,7 @@ function print_thread_messages($thread, $token, $lastid, $isuser, $format, $agen
 		$url = "$webimroot/thread.php?act=refresh&thread=$threadid&token=$token&html=on&user=".($isuser?"true":"false");
 
 		print("<html><head>\n".
-			"<link rel=\"stylesheet\" type=\"text/css\" media=\"all\" href=\"$webimroot/chat.css\" />\n".
+			"<link rel=\"stylesheet\" type=\"text/css\" media=\"all\" href=\"$webimroot/styles/default/chat.css\" />\n".
 			"<meta http-equiv=\"Refresh\" content=\"7; URL=$url&sn=11\">\n".
 			"<meta http-equiv=\"Pragma\" content=\"no-cache\">\n".
 			"</head>".
diff --git a/src/messenger/webim/libs/demothread.php b/src/messenger/webim/libs/demothread.php
index 0f895ff5..629c2df6 100644
--- a/src/messenger/webim/libs/demothread.php
+++ b/src/messenger/webim/libs/demothread.php
@@ -32,7 +32,7 @@ function demo_process_thread($act,$outformat,$lastid,$isuser,$canpost,$istyping,
 			start_html_output();
 			$url = "$webimroot/thread.php?act=refresh&thread=0&token=123&html=on&user=".($isuser?"true":"false");
 			print("<html><head>\n".
-				"<link rel=\"stylesheet\" type=\"text/css\" media=\"all\" href=\"$webimroot/chat.css\" />\n".
+				"<link rel=\"stylesheet\" type=\"text/css\" media=\"all\" href=\"$webimroot/styles/default/chat.css\" />\n".
 				"<meta http-equiv=\"Refresh\" content=\"7; URL=$url&sn=11\">\n".
 				"<meta http-equiv=\"Pragma\" content=\"no-cache\">\n".
 				"</head>".