Fixed a bug that created pages dynamically over and over