Fixed bug that removes delays from repeat blocks