Fix related patterns formatting