fix not valid pattern that has been deleted #15