Fixed debugstring array resulting in wrong debug messages