Fix bugs in cleanpage and splitpage copying values across.