changed setLayoutCells to throw badConfigException