Fix layoutregion and sandbox