Fix bugs of partial parsing.