add hack to prevent semantic blocks from duplicating ids