Fixed bug on debug message (reported by Rob)