fix an issue with element constructors