Fixed an issue with instantiating Elements with different type of parameters
Fixed a defect where the element didn't have a type specified