Fix debug system