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

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

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