Fixed so region can be empty in pagetemplate