Remove last pattern