Pass in the proper variable when calling ReflectionClass

A small change but allows for more than 3 parameters to be passed properly into the factory method.