diff --git a/lib/core/session.py b/lib/core/session.py
index f461e996f..b8ce773d7 100644
--- a/lib/core/session.py
+++ b/lib/core/session.py
@@ -187,7 +187,7 @@ def setOs():
elif "sp" not in kb.bannerFp and kb.os == "Windows":
kb.osSP = 0
- if kb.os and kb.osVersion:
+ if kb.os and kb.osVersion and kb.osSP:
infoMsg += " Service Pack %d" % kb.osSP
if infoMsg:
diff --git a/lib/core/settings.py b/lib/core/settings.py
index 17561ccb1..0343ea058 100644
--- a/lib/core/settings.py
+++ b/lib/core/settings.py
@@ -30,7 +30,7 @@ import sys
# sqlmap version and site
-VERSION = "0.7"
+VERSION = "0.8-dev1"
VERSION_STRING = "sqlmap/%s" % VERSION
SITE = "http://sqlmap.sourceforge.net"
diff --git a/xml/queries.xml b/xml/queries.xml
index 785b09223..e5854e95f 100644
--- a/xml/queries.xml
+++ b/xml/queries.xml
@@ -151,8 +151,8 @@
-
-
+
+