#131 Fixed ChainedMain to instantiate correct class