Fixed problems with Check Box layout creation.