Fixed a bug on prefix filtering results.  Closes #356