Fixed the function extraction code in the base parser.