Harmonizer memory allocation bug fix