Fixed bug in partial match.