fixng pattern render issues