Bug fix on multiple plan searches.