Bug corrected when post processing. First matching result is returned