fix for element factory
refs #44