fix new pattern error