Fix error that would occur if 'debug' mode was not set