Fixed a bug in the InsertElement class

The refactor broke a reference to the parent classes. Fixed namespaces.