 			
 			unless expires?
 				settings = config.get 'packageSettings:shrub-villiany:ban'
-				expires = settings.defaultExpiration
-			
-			data = expires: Date.now() + expires
+				expires = parseInt settings.defaultExpiration
+				
+			data = expires: new Date Date.now() + expires
 			data[key] = fingerprint[key] for key in fingerprintKeys
 			orm.collection('shrub-ban').create data
 			

			
			attributes:
			
				expires: 'number'
				
		# The structure of a ban is dictated by the fingerprint structure.
		for key in fingerprintKeys

						Math.round (active.reduce(
							(l, r) ->
								
								if l > r.expires.getTime()
									l
								else
									r.expires.getTime()
								
							-Infinity
						
