fixed the little pattern error