Fixed errors when adding Add Page option