Fix error with edit page template