Fix error on adding page