Fix debug flag not being read