[bugfix] Added class name validation.