Fix error on build related to page cusotm post type