Modify some patterns