Fixed issue #45

Using Activator to create an instance if its null