Fixed a bug on pre-rendered page