chore(element binder): Move setting offsetIndex
chore(compiler): Clean up