Fix #28: Crash when pattern matches multiple accounts