lesson MDL-23525 more bugs fixed to pagetypes.