Stupid bug: should not exit loop on first match.