Fix reference to patterns