Fix a bug that patches won't be loaded on pre-rendering sites.