diff --git a/index.js b/index.js
index <HASH>..<HASH> 100644
--- a/index.js
+++ b/index.js
@@ -16,7 +16,7 @@ function WindowPage() {
 	this.format = function(obj) {
 		var query = QueryString.stringify(obj.query);
 		if (query) obj.search = query;
-		else obj.search = null;
+		else delete obj.search;
 		if (obj.path) {
 			var help = this.parse(obj.path);
 			obj.pathname = help.pathname;
Everything passed to search is casted to string