Fix layer clearning bug, supply terminal semicolons