last pattern fix