Fix adding duplicate attributes to a page type