Fixed a bug in which patterns would not render