Fixed bug that created 2 page template object instead of one