Fixed bug with get_pair when all 4 patterns exist