Fix #67 checkLayout function now checks allows undefined tags