Fix bug in reflectionClass relate to #64239