Fixed stupid bug pointed out by His Lordship Tres