fix lambda def into auto_patterns