Fixed an issue causing crashes when grep matches found side-by-side