Fixing bug with ElementParser.