Fixed so _wp_page_template and __ptb_page_type is pre saved so it the values is not lost