fix null ref in Reflector