was using DEBUG instead of isDebug, fixed