minor fix to replace classname value (off by one)