diff --git a/src/plugins/qt4projectmanager/wizards/mobilelibraryparameters.cpp b/src/plugins/qt4projectmanager/wizards/mobilelibraryparameters.cpp
index 14bfecce161d508c80ecd03fea87175e1fd18742..e38ea77b6bbc450453219291f621340cbb442c1d 100644
--- a/src/plugins/qt4projectmanager/wizards/mobilelibraryparameters.cpp
+++ b/src/plugins/qt4projectmanager/wizards/mobilelibraryparameters.cpp
@@ -102,12 +102,13 @@ void MobileLibraryParameters::writeSymbianProFile(QTextStream &str) const
            "    addFiles.sources = " + fileName + ".dll\n"
            "    addFiles.path = !:/sys/bin\n"
            "    DEPLOYMENT += addFiles\n"
-           "}";
+           "}\n";
 }
 
 void MobileLibraryParameters::writeMaemoProFile(QTextStream &str) const
 {
-    str << " else:unix {\n"
+    str << "\n"
+           "unix:!symbian {\n"
            "    maemo5 {\n"
            "        target.path = /opt/usr/lib\n"
            "    } else {\n"