fixing target pattern error